//
// Created by denglibin on 2020/6/24.
//
#include <stdio.h>
#include "../header/sort.h"
/**
 * 打印数组元素
 * @param arr
 * @param len
 */
void print_arr(int arr[], int len)
{
    if (len <= 0)
    {
        return;
    }
    for (int i = 0, *p = arr; i < len; i++, p++)
    {
        printf("%d ", *p);
    }
    printf("\n");
}
/**
 * 交换
 * @param x
 * @param y
 */
void swap_num(int *x, int *y)
{
    int temp = *x;
    *x = *y;
    *y = temp;
}
